package tongwentongshu.com.app.adapter;


import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import tongwentongshu.com.app.R;
import tongwentongshu.com.app.bean.DouBean;

/**
 * 文 件 名: MainBooksAdapter
 * 创 建 人: Allen
 * 创建日期: 16/12/24 19:55
 * 邮   箱: AllenCoder@126.com
 * 修改时间：
 * 修改备注：
 */
public class DoudouAdapter extends BaseQuickAdapter<DouBean.DataBean.DetailBean, BaseViewHolder> {
    private Context mContext;

    public DoudouAdapter(Context mContext, List<DouBean.DataBean.DetailBean> list) {
        super(R.layout.view_shudou, list);
        this.mContext = mContext;
    }

    @Override
    protected void convert(BaseViewHolder helper, DouBean.DataBean.DetailBean item) {
        helper.setText(R.id.tv_shudou_content, item.getDoudou_log());
        helper.setText(R.id.tv_shudou_time, item.getCreate_time());
        helper.setText(R.id.tv_sum, (item.getDoudou_edit_status().equals("1") ? "+" : "-") + item.getDoudou_num());
    }


}
